package com.youu.youu.manager.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.youu.youu.manager.bean.TScenicTicket;
import com.youu.youu.manager.service.ScenicTicketService;


@Controller
@RequestMapping("/scenicticket")
public class ScenicTicketController {
    @Autowired
    ScenicTicketService scenicTicketService;
    
    /**
     * 列出门票
     * @Description (TODO这里用一句话描述这个方法的作用)
     * @param model
     * @return
     */
    @RequestMapping("/scenictickets")
    public String getAllPermiss(Model model) {
        List<TScenicTicket> list = scenicTicketService.getList();
        model.addAttribute("scenictickets", list);
        return "permiss";
    }
    
}
